package com.ym.medical.domain.param;


import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.FeedBackEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "意见反馈信息表")
public class FeedBackParam extends BeanCovert<FeedBackEntity> implements Serializable {
	@ApiModelProperty("标识")
	@NotNull(message = "标识不能为空!", groups = {Update.class})
	private Long id;

	@ApiModelProperty("用户标识")
	private Long userId;

    @ApiModelProperty(notes = "手机号")
    @Size(max = 20 , message = "手机号长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String phoneNo;

    @ApiModelProperty(notes = "反馈内容")
    @Size(max = 1024 , message = "反馈内容长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String backContent;

	@ApiModelProperty("反馈时间")
	private Date backTime;

	@ApiModelProperty("状态 01 未处理 02 已处理")
	@Size(max = 2, message = "状态 01 未处理 02 已处理长度必须在{min}和{max}之间", groups = {Add.class, Update.class})
	private String state;

	@ApiModelProperty("状态 01 未处理 02 已处理")
	private String stateName;

	@ApiModelProperty("开始时间")
	private Date startTime;

	@ApiModelProperty("结束时间")
	private Date endTime;

	public interface Add {

	}

	public interface Update {

	}

}